﻿using F_BLL;
using F_MODEL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace MvcApplication1.Controllers
{
    public class LoginstaffController : ApiController
    {
        StaffLoginBll sbll = new StaffLoginBll();

        [HttpGet]
        public int LoginStaffDo(string staffNum, string staffpwd)
        {
            StaffInfo m = new StaffInfo();
            return sbll.LoginStaffDo(staffNum, staffpwd); ;
        }
        [HttpGet]
        public StaffInfo getlist(string staffNum)
        {
            StaffInfo m = new StaffInfo();
            StaffInfo list = sbll.getlist(staffNum).FirstOrDefault();
           

            return list;
        }

        [HttpGet]
        public string addr(int sid)
        {
            return sbll.addr(sid);
        }

    }
}
